<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function getMoney(a, b, c) {
        a = +prompt('输入银行卡余额')
        b = +prompt('输入当月食宿消费金额')
        c = +prompt('输入当月生活消费金额')
        d = a - b - c
        alert(`银行卡剩余金额为${d}`)
        return d
      }
           let money = getMoney()
           console.log(money);
    </script>
  </body>
</html>
